package com.sxbbc.common.core.entity.jz;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 新闻信息
 * </p>
 *
 * @author leehao
 * @since 2019-04-29
 */
@TableName("sys_news")
public class SysNews extends Model<SysNews> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    private String title;

    /**
     * 封面图
     */
    private String url;

    /**
     * 描述
     */
    private String descVal;

    /**
     * 内容
     */
    private String content;

    /**
     * 1公告  2素材
     */
    private Integer type;

    private Date createtime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getDescVal() {
        return descVal;
    }

    public void setDescVal(String descVal) {
        this.descVal = descVal;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysNews{" +
        "id=" + id +
        ", title=" + title +
        ", url=" + url +
        ", descVal=" + descVal +
        ", content=" + content +
        ", type=" + type +
        ", createtime=" + createtime +
        "}";
    }
}
